package com.blb.community.controller;


import com.blb.community.entity.ZyFiles;
import com.blb.community.service.IZyFilesService;
import com.blb.community.utils.ResponseResult;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 文件管理 前端控制器
 * </p>
 *
 * @author 帅帅
 * @since 2022-07-02
 */
@Api
@RestController
@RequestMapping("/zy-files")
public class ZyFilesController {
    @Autowired
    private IZyFilesService filesService;

    @GetMapping("/img")
    public ResponseResult<List<ZyFiles>> getFileImg(){
        List<ZyFiles> list = filesService.list(null);
        return ResponseResult.ok(list);
    }
}
